<%@ page language="java" contentType="text/html; charset=utf-8"
	import="java.util.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
	<%
	out.println("<h1>静夜思</h1>"); 
	out.println("床前明月光<br>"); 
	out.println("疑是地上霜<br>"); 
	out.flush();
	//out.clear();//会抛出异常
	out.clearBuffer();//不会抛出异常
	out.println("举头望明月<br>"); 
	out.println("低头思故乡<br>"); 
	%>
	缓冲区大小：<%=out.getBufferSize() %>byte<br>
	剩余缓冲区大小：<%=out.getRemaining() %>byte<br>
	缓冲区是否清空：<%=out.isAutoFlush() %><br>
</body>
</html>